from common.main_page import *
from common.read_yaml import ReadYaml
from base.base import *
from page.login_page import LoginPage

airtest_data = ReadYaml(r"airtest_data.yml").get_yaml_data()#读取数据
jiakaobaodian  = airtest_data['jiakaobaodian']
poco = MainPage().poco

class LoginHandle:
    def __init__(self):
        self.page = LoginPage()

    def clink_jiakao(self):
        """
        点击驾考宝典
        """
        return self.page.jiakao().click()

    def clink_baoming(self):
        """
        点击报名
        """
        return self.page.baoming().click()

    def clink_sousuokuang(self):
        """
        点击报名页的输入框
        """
        return self.page.sousuokuang().click()

    def text_sousuokuang(self,text):
        """
        输入报名页的输入框
        """
        return self.page.sousuokuang().set_text(text)

    def clink_sousuo_anniu(self):
        """
        点击输入框
        """
        return self.page.sousuo_anniu().click()


